package com.example.memoriesfall.ddms2;

import android.support.v7.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LifeCircle extends AppCompatActivity {
    private Button b1;
    static final String LIFT_TAG="LogActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_life_circle);

        Log.v(LifeCircle.LIFT_TAG, "FirstAcvity ---> onCreate");
        Button b1 = (Button)findViewById(R.id.b1);
        b1.setOnClickListener(new ButtonOnClickListener());
    }

    class ButtonOnClickListener implements OnClickListener{

        @Override
        public void onClick(View v) {
            Intent intent = new Intent();
            intent.setClass(LifeCircle.this,LifeCircle2.class);
            LifeCircle.this.startActivity(intent);
        }
    }

    @Override
    protected void onDestroy() {
        Log.v(LifeCircle.LIFT_TAG, "FirstActivity ---> onDestroy");
        super.onDestroy();
    }

    @Override
    protected void onPause() {
        Log.v(LifeCircle.LIFT_TAG, "FirstActivity ---> onPause");
        super.onPause();
    }

    @Override
    protected void onResume() {
        Log.v(LifeCircle.LIFT_TAG, "FirstActivity ---> onResume");
        super.onResume();
    }

    @Override
    protected void onRestart() {
        Log.v(LifeCircle.LIFT_TAG, "FirstActivity ---> onRestart");
        super.onRestart();
    }

    @Override
    protected void onStart() {
        Log.v(LifeCircle.LIFT_TAG, "FirstActivity ---> onStart");
        super.onStart();
    }

    @Override
    protected void onStop() {
        Log.v(LifeCircle.LIFT_TAG, "FirstActivity ---> onStop");
        super.onStop();
    }

}
